//
//  MyCollectsTabViewController.swift
//  weile
//
//  Created by LKM on 16/11/7.
//  Copyright © 2016年 LKM. All rights reserved.
//

import UIKit
import SnapKit

class MyCollectsTabViewController: LKMTabViewController {
    
    private var contentWrapView:UIView?

    override func getContentWrapView() -> UIView {
        if(contentWrapView == nil){
            contentWrapView = UIView();
            contentWrapView?.backgroundColor = UIColor.clear
            view.addSubview(contentWrapView!);
            contentWrapView!.snp.makeConstraints { (cm:ConstraintMaker) in
                cm.top.equalTo(topLayoutGuide.snp.bottom)//equalToSuperview()//.offset(30);
                cm.left.equalToSuperview()//.offset(30);
                cm.right.equalToSuperview()//.offset(-30);
                cm.bottom.equalToSuperview()//.offset(-30);
            }
        }
        
        return contentWrapView!;
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        
        var vcs=[BaseViewController]();
        var vc :BaseViewController = ActivityRequest.getMyCollectsProductViewController()
        vc.isTransparentBg = true;
        vcs.append(vc)
        
        vc = ActivityRequest.getMyCollectsArticleViewController()
        vc.isTransparentBg = true;
        vcs.append(vc)
        
        initTabContents(vcs)
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
}
